import http from "@/utils/request";

export const getArticle = () => {
    return http.get('/load/articles')
}
export const uploadArticle = (data) => {
    return http.post('/upload/blogUpload', data)
}
export const userRegister = (data) => {
    return http.post('/user/signup', data);
};
export const user_login = (params) => {
    return http.get('/user/login', params);
};
export const ArticleDetail = (params) => {
    return http.get('/visit/blog', params)
}
export const userCenter = (params) => {
    return http.get('/visit/userHome', params)
}